package o;

import android.content.Intent;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appgallery.wishlist.api.ShortWishInfo;
import com.huawei.appgallery.wishlist.api.ShortWishListResBean;
import java.util.ArrayList;
import java.util.List;
import o.dcm.c;

public class dcp implements IServerCallBack {
    public void ॱ() {
        cfw.ˎ(new dci(), this);
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean instanceof ShortWishListResBean) {
            List<ShortWishInfo> ˏ = ((ShortWishListResBean) responseBean).ˏ();
            if (CollectCheck.isEmpty((List) ˏ)) {
                dcn.ˊ().ˎ(null);
            } else {
                List arrayList = new ArrayList();
                for (ShortWishInfo ˎ : ˏ) {
                    arrayList.add(ˎ.ˎ());
                }
                dcn.ˊ().ˎ(arrayList);
            }
            ˊ();
        }
    }

    private static void ˊ() {
        dch.ˎ.ˋ("WishListPullService", "Wish list change.");
        ll.ˏ(ContentManager.getInstant().getContext()).ˋ(new Intent(c.ॱ));
    }
}
